package com.bsj.power.common.def.dto.path;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description PathBanDTO
 * @time 2024/12/28 12:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PathBanDTO {

    /**
     * 围栏id集
     */
    @NotEmpty(message = "请选择围栏")
    private List<Integer> pathIds;

    /**
     * 是否禁用 0:启用  1:禁用
     */
    @NotNull(message = "请选择禁用或启用")
    @Min(value = 0, message = "请选择禁用或启用")
    @Max(value = 1, message = "请选择禁用或启用")
    private Integer isBan;

}
